import { ipcMain } from 'electron';
import { LISTENER } from '../../events/event.listener';
import readFile from './readFile';
import saveFile from './saveFile';
const globalListener = () => {
  /* 读取文件 */
  ipcMain.on(LISTENER.READ_FILE, readFile);
  /* 存储文件 */
  ipcMain.on(LISTENER.SAVE_FILE, saveFile);
};
export { globalListener };
